<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>Giveda® Embedded Midware: GFontMetrics类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Giveda® Embedded Midware
   &#160;<span id="projectnumber">1.2.0</span>
   </div>
   <div id="projectbrief">本文档受《版权法》、《版权公约》保护。深圳技达®版权所有</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="namespaces.html"><span>命名空间</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>类列表</span></a></li>
      <li><a href="classes.html"><span>类索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>类成员</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>类</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>命名空间</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>文件</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>变量</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>类型定义</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>枚举</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>枚举值</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>友元</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>宏定义</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark">&#160;</span>页</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_g_font_metrics-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">GFontMetrics类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="class_g_font_metrics.html" title="GFontMetrics 使用 GFont 来获取文本的显示宽高 ">GFontMetrics</a> 使用 <a class="el" href="class_g_font.html" title="字体、字号等信息。 ">GFont</a> 来获取文本的显示宽高  
 <a href="class_g_font_metrics.html#details">更多...</a></p>

<p><code>#include &lt;gFontMetrics.h&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a1666c03ffcf495ce7023c21c62b3dbae"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_font_metrics.html#a1666c03ffcf495ce7023c21c62b3dbae">GFontMetrics</a> (const <a class="el" href="class_g_font.html">GFont</a> &amp;f)</td></tr>
<tr class="separator:a1666c03ffcf495ce7023c21c62b3dbae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a595600b3ecfdbe11dc566fef843cee24"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_font_metrics.html#a595600b3ecfdbe11dc566fef843cee24">~GFontMetrics</a> ()</td></tr>
<tr class="separator:a595600b3ecfdbe11dc566fef843cee24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5184a56ceb17749d748466b8a55bd157"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_font_metrics.html#a5184a56ceb17749d748466b8a55bd157">GFontMetrics</a> (const <a class="el" href="class_g_font_metrics.html">GFontMetrics</a> &amp;)</td></tr>
<tr class="separator:a5184a56ceb17749d748466b8a55bd157"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ae8d6735344e32ee699354d4ed515b2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_g_font_metrics.html">GFontMetrics</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_font_metrics.html#a6ae8d6735344e32ee699354d4ed515b2">operator=</a> (const <a class="el" href="class_g_font_metrics.html">GFontMetrics</a> &amp;)</td></tr>
<tr class="separator:a6ae8d6735344e32ee699354d4ed515b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d46d95e7c6cf2d3d813af4319ea53dd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_g_size.html">GSize</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_font_metrics.html#a2d46d95e7c6cf2d3d813af4319ea53dd">size</a> (int flags, const <a class="el" href="class_g_string.html">GString</a> &amp;str, int len=-1, int tabstops=0, int *tabarray=0, char **intern=0)</td></tr>
<tr class="memdesc:a2d46d95e7c6cf2d3d813af4319ea53dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">在指定的排版格式下，计算指定文本字符串的显示宽高  <a href="#a2d46d95e7c6cf2d3d813af4319ea53dd">更多...</a><br/></td></tr>
<tr class="separator:a2d46d95e7c6cf2d3d813af4319ea53dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf87502bb85d42ec070a55278cc7395a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="g_global_8h.html#a7e10d76994c6d6f42216e5a310255abf">T_OFFSET</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_font_metrics.html#adf87502bb85d42ec070a55278cc7395a">height</a> (const <a class="el" href="class_g_string.html">GString</a> &amp;str, const <a class="el" href="g_global_8h.html#a7e10d76994c6d6f42216e5a310255abf">T_OFFSET</a> lineW)</td></tr>
<tr class="memdesc:adf87502bb85d42ec070a55278cc7395a"><td class="mdescLeft">&#160;</td><td class="mdescRight">在限定了显示宽度的情况下，计算指定文本字符串需要的显示高度  <a href="#adf87502bb85d42ec070a55278cc7395a">更多...</a><br/></td></tr>
<tr class="separator:adf87502bb85d42ec070a55278cc7395a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p><a class="el" href="class_g_font_metrics.html" title="GFontMetrics 使用 GFont 来获取文本的显示宽高 ">GFontMetrics</a> 使用 <a class="el" href="class_g_font.html" title="字体、字号等信息。 ">GFont</a> 来获取文本的显示宽高 </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a class="anchor" id="a1666c03ffcf495ce7023c21c62b3dbae"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GFontMetrics::GFontMetrics </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_g_font.html">GFont</a> &amp;&#160;</td>
          <td class="paramname"><em>f</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a595600b3ecfdbe11dc566fef843cee24"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual GFontMetrics::~GFontMetrics </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a5184a56ceb17749d748466b8a55bd157"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GFontMetrics::GFontMetrics </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_g_font_metrics.html">GFontMetrics</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a class="anchor" id="adf87502bb85d42ec070a55278cc7395a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="g_global_8h.html#a7e10d76994c6d6f42216e5a310255abf">T_OFFSET</a> GFontMetrics::height </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_g_string.html">GString</a> &amp;&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="g_global_8h.html#a7e10d76994c6d6f42216e5a310255abf">T_OFFSET</a>&#160;</td>
          <td class="paramname"><em>lineW</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>在限定了显示宽度的情况下，计算指定文本字符串需要的显示高度 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">str</td><td>字符串 </td></tr>
    <tr><td class="paramname">lineW</td><td>限定显示宽度 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>T_OFFSET </dd></dl>

</div>
</div>
<a class="anchor" id="a6ae8d6735344e32ee699354d4ed515b2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_font_metrics.html">GFontMetrics</a>&amp; GFontMetrics::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_g_font_metrics.html">GFontMetrics</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a2d46d95e7c6cf2d3d813af4319ea53dd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_size.html">GSize</a> GFontMetrics::size </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>flags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_g_string.html">GString</a> &amp;&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>len</em> = <code>-1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>tabstops</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>tabarray</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char **&#160;</td>
          <td class="paramname"><em>intern</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>在指定的排版格式下，计算指定文本字符串的显示宽高 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">flags</td><td>排版格式 </td></tr>
    <tr><td class="paramname">str</td><td>字符串 </td></tr>
    <tr><td class="paramname">len</td><td>... </td></tr>
    <tr><td class="paramname">tabstops</td><td>... </td></tr>
    <tr><td class="paramname">tabarray</td><td>... </td></tr>
    <tr><td class="paramname">intern</td><td>... </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><a class="el" href="class_g_size.html" title="GSize 尺寸大小。对二维平面上的尺寸大小进行各种数学运算。 ">GSize</a> </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>API/<a class="el" href="g_font_metrics_8h.html">gFontMetrics.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2019年 三月 23日 星期六 14:13:10 , 为 Giveda® Embedded Midware使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
